Optimal. Leaf size=76 \[ i a c d x+a d \log (x)-\frac {1}{2} i b d \log \left (c^2 x^2+1\right )+\frac {1}{2} i b d \text {Li}_2(-i c x)-\frac {1}{2} i b d \text {Li}_2(i c x)+i b c d x \tan ^{-1}(c x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {4876, 4846, 260, 4848, 2391} \[ \frac {1}{2} i b d \text {PolyLog}(2,-i c x)-\frac {1}{2} i b d \text {PolyLog}(2,i c x)+i a c d x+a d \log (x)-\frac {1}{2} i b d \log \left (c^2 x^2+1\right )+i b c d x \tan ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 260
Rule 2391
Rule 4846
Rule 4848
Rule 4876
Rubi steps
\begin {align*} \int \frac {(d+i c d x) \left (a+b \tan ^{-1}(c x)\right )}{x} \, dx &=\int \left (i c d \left (a+b \tan ^{-1}(c x)\right )+\frac {d \left (a+b \tan ^{-1}(c x)\right )}{x}\right ) \, dx\\ &=d \int \frac {a+b \tan ^{-1}(c x)}{x} \, dx+(i c d) \int \left (a+b \tan ^{-1}(c x)\right ) \, dx\\ &=i a c d x+a d \log (x)+\frac {1}{2} (i b d) \int \frac {\log (1-i c x)}{x} \, dx-\frac {1}{2} (i b d) \int \frac {\log (1+i c x)}{x} \, dx+(i b c d) \int \tan ^{-1}(c x) \, dx\\ &=i a c d x+i b c d x \tan ^{-1}(c x)+a d \log (x)+\frac {1}{2} i b d \text {Li}_2(-i c x)-\frac {1}{2} i b d \text {Li}_2(i c x)-\left (i b c^2 d\right ) \int \frac {x}{1+c^2 x^2} \, dx\\ &=i a c d x+i b c d x \tan ^{-1}(c x)+a d \log (x)-\frac {1}{2} i b d \log \left (1+c^2 x^2\right )+\frac {1}{2} i b d \text {Li}_2(-i c x)-\frac {1}{2} i b d \text {Li}_2(i c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 76, normalized size = 1.00 \[ i a c d x+a d \log (x)-\frac {1}{2} i b d \log \left (c^2 x^2+1\right )+\frac {1}{2} i b d \text {Li}_2(-i c x)-\frac {1}{2} i b d \text {Li}_2(i c x)+i b c d x \tan ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {2 i \, a c d x + 2 \, a d - {\left (b c d x - i \, b d\right )} \log \left (-\frac {c x + i}{c x - i}\right )}{2 \, x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 113, normalized size = 1.49 \[ i a c d x +d a \ln \left (c x \right )+i b c d x \arctan \left (c x \right )+d b \ln \left (c x \right ) \arctan \left (c x \right )+\frac {i d b \ln \left (c x \right ) \ln \left (i c x +1\right )}{2}-\frac {i d b \ln \left (c x \right ) \ln \left (-i c x +1\right )}{2}+\frac {i d b \dilog \left (i c x +1\right )}{2}-\frac {i d b \dilog \left (-i c x +1\right )}{2}-\frac {i b d \ln \left (c^{2} x^{2}+1\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ i \, a c d x + \frac {1}{2} i \, {\left (2 \, c x \arctan \left (c x\right ) - \log \left (c^{2} x^{2} + 1\right )\right )} b d + b d \int \frac {\arctan \left (c x\right )}{x}\,{d x} + a d \log \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.62, size = 63, normalized size = 0.83 \[ -\frac {b\,d\,\left (\ln \left (c^2\,x^2+1\right )\,1{}\mathrm {i}-c\,x\,\mathrm {atan}\left (c\,x\right )\,2{}\mathrm {i}\right )}{2}+a\,d\,\left (\ln \relax (x)+c\,x\,1{}\mathrm {i}\right )-\frac {b\,d\,\left ({\mathrm {Li}}_{\mathrm {2}}\left (1-c\,x\,1{}\mathrm {i}\right )-{\mathrm {Li}}_{\mathrm {2}}\left (1+c\,x\,1{}\mathrm {i}\right )\right )\,1{}\mathrm {i}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ i d \left (\int a c\, dx + \int \left (- \frac {i a}{x}\right )\, dx + \int b c \operatorname {atan}{\left (c x \right )}\, dx + \int \left (- \frac {i b \operatorname {atan}{\left (c x \right )}}{x}\right )\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________